package org.jeecg.modules.agent.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.agent.entity.AgentPurse;
import org.jeecg.modules.agent.facade.IAgentPurseFacade;
import org.jeecg.modules.agent.service.IAgentPurseService;
import org.jeecg.modules.agent.vo.AgentPurseVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 代理钱包
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class AgentPurseFacadeImpl extends IFacadeImpl<AgentPurseVo, AgentPurse, IAgentPurseService>  implements IAgentPurseFacade<AgentPurseVo, AgentPurse> {
        @Autowired
        private IAgentPurseService agentPurseService;


         @Override
         public AgentPurse po2Vo(AgentPurseVo vo) {
                AgentPurse po = new AgentPurse();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public AgentPurseVo vo2Po(AgentPurse po) {
                AgentPurseVo vo = new AgentPurseVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
